31 #include <QApplication>
35 #include <QDesktopServices>
38 #include <QElapsedTimer>
39 #include <QFileDialog>
41 #include <QFutureWatcher>
43 #include <QInputDialog>
46 #include <QMainWindow>
47 #include <QMediaPlayer>
48 #include <QMessageBox>
49 #include <QMouseEvent>
51 #include <qt_windows.h>
52 #include <QNetworkInterface>
54 #include <QNetworkInterface>
62 #include <QSqlDatabase>
68 #include <QStyledItemDelegate>
71 #include <QTranslator>
73 #if QT_VERSION >= 0x050600 && defined(SPOTON_WEBENGINE_ENABLED)
74 #include <QWebEngineUrlRequestInterceptor>
82 #include "libSpotOn/libspoton.h"
86 #include "Common/CocoaInitializer.h"
89 #include "spot-on-buzzpage.h"
90 #include "spot-on-defines.h"
91 #include "ui_spot-on-keyboard.h"
93 class QStandardItemModel;
104 QWidget *createEditor(QWidget *parent,
105 const QStyleOptionViewItem &option,
106 const QModelIndex &index)
const
110 QLineEdit *lineEdit =
new QLineEdit(parent);
112 lineEdit->setReadOnly(
true);
113 lineEdit->setText(index.data().toString());
126 m_ui.passphrase->clear();
127 m_ui.passphrase->setEchoMode(QLineEdit::Password);
129 SIGNAL(clicked(
void)),
131 SLOT(slotBack(
void)));
133 SIGNAL(clicked(
void)),
135 SLOT(slotShift(
void)));
137 SIGNAL(toggled(
bool)),
139 SLOT(slotShow(
bool)));
141 QLocale::Country country = QLocale::system().country();
144 if(country == QLocale::Germany)
173 for(
int i = 0; i < row.size(); i++)
175 QToolButton *button =
new QToolButton(
this);
177 button->setMinimumSize(45, 45);
178 button->setText(row.at(i));
179 m_ui.number_layout->addWidget(button);
184 if(country == QLocale::Germany)
213 for(
int i = 0; i < row.size(); i++)
215 QToolButton *button =
new QToolButton(
this);
217 button->setMinimumSize(45, 45);
218 button->setText(row.at(i));
219 m_ui.row1->addWidget(button);
224 if(country == QLocale::Germany)
249 for(
int i = 0; i < row.size(); i++)
251 QToolButton *button =
new QToolButton(
this);
253 button->setMinimumSize(45, 45);
254 button->setText(row.at(i));
255 m_ui.row2->addWidget(button);
260 if(country == QLocale::Germany)
283 for(
int i = 0; i < row.size(); i++)
285 QToolButton *button =
new QToolButton(
this);
287 button->setMinimumSize(45, 45);
288 button->setText(row.at(i));
289 m_ui.row3->addWidget(button);
292 foreach(QToolButton *button, findChildren<QToolButton *> ())
293 if(button != m_ui.back && button != m_ui.shift)
295 SIGNAL(clicked(
void)),
297 SLOT(slotKeyPressed(
void)));
299 setWindowTitle(tr(
"%1: Virtual Keyboard").arg(SPOTON_APPLICATION_NAME));
306 Ui_spoton_keyboard m_ui;
311 m_ui.passphrase->backspace();
314 void slotKeyPressed(
void)
316 QToolButton *button = qobject_cast<QToolButton *> (sender());
321 QString text(m_ui.passphrase->text());
323 if(button == m_ui.space)
325 else if(m_ui.shift->isChecked())
326 text.append(button->text().split(
'\n').value(0).mid(0, 1).toUpper());
327 else if(button->text().contains(
'\n'))
328 text.append(button->text().split(
'\n').value(1));
330 text.append(button->text());
332 m_ui.passphrase->setText(text);
335 void slotShow(
bool state)
338 m_ui.passphrase->setEchoMode(QLineEdit::Normal);
340 m_ui.passphrase->setEchoMode(QLineEdit::Password);
346 foreach(QToolButton *button, findChildren<QToolButton *> ())
347 if(button != m_ui.back && button != m_ui.shift)
349 if(m_ui.shift->isChecked())
350 button->setText(button->text().toUpper());
352 button->setText(button->text().toLower());
372 void mouseDoubleClickEvent(QMouseEvent *event)
375 if(event->type() == QEvent::MouseButtonDblClick)
377 m_dialog->m_ui.shift->setChecked(
false);
378 m_dialog->m_ui.show->setChecked(
false);
379 m_dialog->slotShift();
380 m_dialog->m_ui.passphrase->setFocus();
382 if(m_dialog->exec() == QDialog::Accepted)
384 QApplication::processEvents();
385 setText(m_dialog->m_ui.passphrase->text());
388 QApplication::processEvents();
389 m_dialog->m_ui.passphrase->clear();
392 QLineEdit::mouseDoubleClickEvent(event);
399 #include "Common/spot-on-common.h"
400 #include "Common/spot-on-crypt.h"
401 #include "Common/spot-on-external-address.h"
402 #include "Common/spot-on-misc.h"
403 #include "Common/spot-on-send.h"
404 #include "spot-on-chatwindow.h"
405 #include "spot-on-encryptfile.h"
406 #include "spot-on-logviewer.h"
407 #include "spot-on-rosetta.h"
408 #include "spot-on-smpwindow.h"
409 #include "ui_spot-on-controlcenter.h"
410 #include "ui_spot-on-notificationswindow.h"
411 #include "ui_spot-on-options.h"
412 #include "ui_spot-on-poptastic-retrophone-settings.h"
413 #include "ui_spot-on-statisticswindow.h"
414 #include "ui_spot-on-statusbar.h"
415 #include "ui_spot-on-wizard.h"
417 class QProgressDialog;
427 QByteArray m_public_key;
428 QByteArray m_public_key_hash;
429 QDateTime m_date_time;
440 QHash<QString, QPair<QQueue<QString>, QQueue<QByteArray> > > m_chatQueues;
441 QHash<QString, QVariant> m_settings;
442 QHash<QString, quint64> m_chatSequenceNumbers;
443 static char s_keyDelimiter;
444 QHash<QString, spoton_crypt *> crypts(
void)
const;
445 QMap<QString, QByteArray> SMPWindowStreams(
const QStringList &keyTypes)
const;
446 QList<QByteArray> retrieveForwardSecrecyInformation(
const QString &oid,
448 QSqlDatabase urlDatabase(
void)
const;
450 QSslSocket *kernelSocket(
void)
452 return &m_kernelSocket;
455 QStandardItemModel *starbeamReceivedModel(
void)
const;
456 Ui_spoton_mainwindow ui(
void)
const;
458 static QHash<QString, QStringList> s_publicKeySizes;
459 static QList<QTableWidgetItem *> findItems(QTableWidget *table,
462 static QString mapIconToEmoticon(
const QString &content);
463 static void prepareDatabasesFromUI(
void);
464 void addMessageToReplayQueue(
const QString &message1,
465 const QByteArray &message2,
466 const QString &publicKeyHash);
469 static const int APPLY_GOLDBUG_TO_LETTER_ERROR_ATTACHMENTS = 1;
470 static const int APPLY_GOLDBUG_TO_LETTER_ERROR_DATABASE = 2;
471 static const int APPLY_GOLDBUG_TO_LETTER_ERROR_GENERAL = 3;
472 static const int APPLY_GOLDBUG_TO_LETTER_ERROR_MEMORY = 4;
473 QAtomicInt m_pqUrlFaultyCounter;
474 QAtomicInt m_starbeamDigestInterrupt;
475 QByteArray m_kernelSocketData;
476 QDateTime m_buzzFavoritesLastModificationTime;
477 QDateTime m_listenersLastModificationTime;
478 QDateTime m_magnetsLastModificationTime;
479 QDateTime m_neighborsLastModificationTime;
480 QDateTime m_participantsLastModificationTime;
481 QDateTime m_starsLastModificationTime;
482 QDialog *m_poptasticRetroPhoneDialog;
483 QElapsedTimer m_urlQueryElapsedTimer;
484 QFuture<QList<QPair<QString, QVariant> > > m_statisticsFuture;
485 QFuture<void> m_generalFuture;
486 QFuture<void> m_neighborsFuture;
487 QFuture<void> m_participantsFuture;
488 QFuture<void> m_pqUrlDatabaseFuture;
489 QFutureWatcher<QList<QPair<QString, QVariant> > > m_statisticsFutureWatcher;
490 QHash<QByteArray, QPointer<spoton_buzzpage> > m_buzzPages;
491 QHash<QByteArray, QString> m_neighborToOidMap;
492 QHash<QByteArray, quint64> m_receivedChatSequenceNumbers;
493 QHash<QByteArray, spoton_forward_secrecy> m_forwardSecrecyRequests;
494 QHash<QString, QByteArray> m_buzzIds;
495 QHash<QString, QPointer<spoton_chatwindow> > m_chatWindows;
496 QHash<QString, QString> m_keysShared;
497 QHash<QString, bool> m_wizardHash;
498 QHash<QString, spoton_crypt *> m_crypts;
499 QHash<QString, spoton_smp *> m_smps;
507 QList<QFuture<void> > m_starbeamDigestFutures;
508 QMainWindow *m_addParticipantWindow;
509 QMainWindow *m_notificationsWindow;
510 QMainWindow *m_optionsWindow;
511 QMainWindow *m_statisticsWindow;
512 QMap<int, QHash<QString, QVariant> > m_tabWidgetsProperties;
513 QMap<int, QWidget *> m_tabWidgets;
517 QPointer<spoton_status_activity> m_statusActivity;
518 QSet<QString> m_urlPrefixes;
519 QSqlDatabase m_urlDatabase;
520 QSslSocket m_kernelSocket;
521 QStandardItemModel *m_starbeamReceivedModel;
522 QStandardItemModel *m_statisticsModel;
523 QString m_defaultStyleSheet;
524 QString m_emailAddressAdded;
526 QTimer m_buzzStatusTimer;
527 QTimer m_chatInactivityTimer;
528 QTimer m_emailRetrievalTimer;
529 QTimer m_externalAddressDiscovererTimer;
530 QTimer m_generalTimer;
531 QTimer m_kernelUpdateTimer;
532 QTimer m_listenersUpdateTimer;
533 QTimer m_neighborsUpdateTimer;
534 QTimer m_participantsUpdateTimer;
535 QTimer m_starbeamUpdateTimer;
537 QTimer m_updateChatWindowsTimer;
538 QTimer m_webServerInformationTimer;
539 QTimer m_webServerValueChangedTimer;
541 Ui_spoton_mainwindow m_ui;
542 Ui_spoton_notifications_window m_notificationsUi;
543 Ui_spoton_options m_optionsUi;
544 Ui_spoton_poptasticretrophonesettings m_poptasticRetroPhoneSettingsUi;
545 Ui_spoton_statistics_window m_statisticsUi;
546 Ui_spoton_statusbar m_sb;
547 Ui_spoton_wizard *m_wizardUi;
550 quint64 m_urlCurrentPage;
564 QByteArray copiedPublicKeyPairToMagnet(
const QByteArray &data)
const;
565 QByteArray copyMyChatPublicKey(
void)
const;
566 QByteArray copyMyEmailPublicKey(
void)
const;
567 QByteArray copyMyOpenLibraryPublicKey(
void)
const;
568 QByteArray copyMyPoptasticPublicKey(
void)
const;
569 QByteArray copyMyRosettaPublicKey(
void)
const;
570 QByteArray copyMyUrlPublicKey(
void)
const;
571 QByteArray poptasticName(
void)
const;
572 QByteArray poptasticNameEmail(
void)
const;
573 QList<QPair<QString, QVariant> > gatherStatistics(
void)
const;
574 QPixmap pixmapForCountry(
const QString &country)
const;
575 QString currentTabName(
void)
const;
576 QString listenerTransport(
void)
const;
577 QString neighborTransport(
void)
const;
578 QString participantKeyType(QTableWidget *table)
const;
579 QString saveCommonUrlCredentials(
const QPair<QByteArray, QByteArray> &keys,
580 const QString &cipherType,
581 const QString &hashType,
583 QString savePoptasticAccount(
void);
584 QStringList parseAEMagnet(
const QString &magnet)
const;
585 QThread::Priority neighborThreadPriority(
void)
const;
586 QWidget *combinationBoxForTable(
void)
const;
587 bool addFriendsKey(
const QByteArray &key,
590 bool deleteAllUrls(
void);
591 bool isKernelActive(
void)
const;
592 bool listenerSupportsSslTls(
void)
const;
593 bool neighborSpecialClient(
void)
const;
594 bool neighborSupportsSslTls(
void)
const;
595 bool nodeExists(
const QSqlDatabase &db,
596 const QString &identifier,
597 const QString &table)
const;
598 bool promptBeforeExit(
void);
599 bool saveGemini(
const QPair<QByteArray, QByteArray> &gemini,
601 bool updateMailStatus(
const QString &oid,
const QString &status);
602 bool verifyInitializationPassphrase(QWidget *parent);
603 bool writeKernelSocketData(
const QByteArray &bytes);
604 int applyGoldBugToLetter(
const QByteArray &goldbug,
const int row);
605 int tabIndexFromName(
const QString &name)
const;
606 void applyGoldBugToAttachments(
const QString &folderOid,
607 const QSqlDatabase &db,
611 void askKernelToReadStarBeamKeys(
void);
614 const QString &message =
"");
615 void authenticationRequested(
const QByteArray &data);
616 void cancelUrlQuery(
void);
617 void changeEchoMode(
const QString &mode, QTableWidget *tableWidget);
619 void closeEvent(QCloseEvent *event);
620 void computeFileDigests(
const QString &fileName,
623 void demagnetize(
void);
624 void derivativeUpdates(
void);
625 void discoverUrls(
void);
626 void displayUrlImportResults(
const QDateTime &then,
627 const quint64 imported,
628 const quint64 not_imported,
629 const quint64 declined);
630 void forwardSecrecyRequested(
const QList<QByteArray> &list);
631 void generalConcurrentMethod(
const QHash<QString, QVariant> &settings);
632 void generateHalfGeminis(
void);
633 void highlightPaths(
void);
634 void importNeighbors(
const QString &filePath);
635 void initializeKernelSocket(
void);
636 void initializeSMP(
const QString &hash);
637 void initializeUrlDistillers(
void);
638 void inspectPQUrlDatabase(
const QByteArray &name,
639 const QByteArray &password);
640 void joinBuzzChannel(
const QUrl &url);
641 void joinDefaultBuzzChannel(
void);
642 void magnetize(
void);
643 void notify(
const QString &text);
644 void playSound(
const QString &name);
645 void popForwardSecrecyRequest(
const QByteArray &publicKeyHash);
646 void populateAETokens(
void);
647 void populateAccounts(
const QString &listenerOid);
648 void populateListenerIps(
const QString &listenerOid);
649 void populateMOTD(
const QString &listenerOid);
650 void populateMail(
void);
651 void populateNovas(
void);
652 void populatePoptasticWidgets(
const QHash<QString, QVariant> &hash);
653 void populateStatistics(
const QList<QPair<QString, QVariant> > &list);
654 void populateUrlDistillers();
655 void prepareAndShowInstallationWizard(
void);
656 void prepareContextMenuMirrors(
void);
657 void prepareListenerIPCombo(
void);
658 void prepareOtherOptions(
void);
659 void prepareSMP(
const QString &hash);
660 void prepareStyleSheet(
void);
661 void prepareTabIcons(
void);
662 void prepareTimeWidgets(
void);
663 void prepareUrlContainers(
void);
664 void prepareUrlLabels(
void);
665 void prepareVisiblePages(
void);
666 void refreshInstitutions(
void);
667 void removeFavorite(
const bool removeAll);
668 void retrieveNeighbors(
void);
670 void saveDestination(
const QString &path);
671 void saveGeoIPPath(
const int version,
const QString &path);
672 void saveKernelPath(
const QString &path);
673 void saveSettings(
void);
674 void saveUrlIniPath(
const QString &path);
675 void sendBuzzKeysToKernel(
void);
676 void sendKeysToKernel(
void);
677 void sendMessage(
bool *ok);
678 void sendSMPLinkToKernel(
const QList<QByteArray> &list,
679 const QString &keyType,
681 void setSBField(
const QString &oid,
682 const QVariant &value,
683 const QString &field);
684 void sharePublicKeyWithParticipant(
const QString &keyType);
685 void showError(
const QString &error);
686 void showUrls(
const QString &link,
const QString &querystr);
687 void updatePoptasticNameSettingsFromWidgets(
spoton_crypt *crypt);
688 void updatePublicKeysLabel(
void);
689 void verifySMPSecret(
const QString &hash,
690 const QString &keyType,
694 void slotAbout(
void);
695 void slotAboutToShowChatSecretsMenu(
void);
696 void slotAboutToShowEmailSecretsMenu(
void);
697 void slotAcceptBuzzMagnets(
bool state);
698 void slotAcceptChatKeys(
bool state);
699 void slotAcceptEmailKeys(
bool state);
700 void slotAcceptGeminis(
bool state);
701 void slotAcceptPublicizedListeners(
void);
702 void slotAcceptUrlKeys(
bool state);
703 void slotActivateKernel(
void);
704 void slotActiveUrlDistribution(
bool state);
705 void slotAddAEToken(
void);
706 void slotAddAcceptedIP(
void);
707 void slotAddAccount(
void);
708 void slotAddAttachment(
void);
709 void slotAddDistiller(
void);
710 void slotAddEtpMagnet(
const QString &text =
"",
711 const bool displayError =
true);
712 void slotAddFriendsKey(
void);
713 void slotAddInstitution(
const QString &text =
"");
714 void slotAddInstitutionCheckBoxToggled(
bool state);
715 void slotAddListener(
void);
716 void slotAddMagnet(
void);
717 void slotAddNeighbor(
void);
718 void slotAddReceiveNova(
void);
719 void slotAfterFirstShow(
void);
720 void slotAllowFSRequest(
bool state);
721 void slotApplyOtherOptions(
void);
722 void slotAssignNewIPToNeighbor(
void);
723 void slotAuthenticate(
void);
724 void slotAuthenticationRequestButtonClicked(
void);
725 void slotAutoAddSharedSBMagnets(
bool state);
726 void slotAutoRetrieveEmail(
bool state);
727 void slotBlockNeighbor(
void);
728 void slotBluetoothSecurityChanged(
int index);
729 void slotBuzzActionsActivated(
int index);
730 void slotBuzzChanged(
void);
731 void slotBuzzInvite(
void);
732 void slotBuzzPageDestroyed(QObject *
object);
733 void slotBuzzTools(
int index);
734 void slotCallParticipant(
void);
735 void slotCallParticipantViaForwardSecrecy(
void);
736 void slotChangeTabPosition(
int index);
737 void slotChatInactivityTimeout(
void);
738 void slotChatPopup(
void);
739 void slotChatSecretsActionSelected(
void);
740 void slotChatSendMethodChanged(
int index);
741 void slotChatTimestamps(
bool state);
742 void slotChatWindowDestroyed(
void);
743 void slotChatWindowMessageSent(
void);
744 void slotClearClipboardBuffer(
void);
745 void slotClearOutgoingMessage(
void);
746 void slotCloseBuzzTab(
int index);
747 void slotCloseTab(
void);
748 void slotCommonBuzzChannelsActivated(
int index);
749 void slotComputeFileHash(
void);
750 void slotConfigurePoptastic(
void);
751 void slotConnectAllNeighbors(
void);
752 void slotConnectNeighbor(
void);
753 void slotCopyAEMagnet(
void);
754 void slotCopyAllMyPublicKeys(
void);
755 void slotCopyEmailFriendshipBundle(
void);
756 void slotCopyEmailKeys(
void);
757 void slotCopyEtpMagnet(
void);
758 void slotCopyFileHash(
void);
759 void slotCopyFriendshipBundle(
void);
760 void slotCopyInstitution(
void);
761 void slotCopyMyChatPublicKey(
void);
762 void slotCopyMyEmailPublicKey(
void);
763 void slotCopyMyOpenLibraryPublicKey(
void);
764 void slotCopyMyPoptasticPublicKey(
void);
765 void slotCopyMyRosettaPublicKey(
void);
766 void slotCopyMyURLPublicKey(
void);
767 void slotCopyOrPaste(
void);
768 void slotCopyPrivateApplicationMagnet(
void);
769 void slotCopyStyleSheet(
void);
770 void slotCopyTransmittedMagnet(
void);
771 void slotCopyUrlFriendshipBundle(
void);
772 void slotCopyUrlKeys(
void);
773 void slotCorrectUrlDatabases(
void);
774 void slotCostChanged(
int value);
775 void slotDaysChanged(
int value);
776 void slotDeactivateKernel(
void);
777 void slotDeleteAEToken(
void);
778 void slotDeleteAcceptedIP(
void);
779 void slotDeleteAccount(
void);
780 void slotDeleteAllBlockedNeighbors(
void);
781 void slotDeleteAllListeners(
void);
782 void slotDeleteAllNeighbors(
void);
783 void slotDeleteAllReceived(
void);
784 void slotDeleteAllTransmitted(
void);
785 void slotDeleteAllUrls(
void);
786 void slotDeleteAllUuids(
void);
787 void slotDeleteEtpAllMagnets(
void);
788 void slotDeleteEtpMagnet(
void);
789 void slotDeleteInstitution(
void);
790 void slotDeleteKey(
void);
791 void slotDeleteListener(
void);
792 void slotDeleteMail(
void);
793 void slotDeleteNeighbor(
void);
794 void slotDeleteNova(
void);
795 void slotDeletePoptasticAccount(
void);
796 void slotDeleteReceived(
void);
797 void slotDeleteTransmitted(
void);
798 void slotDeleteUrlDistillers(
void);
799 void slotDeriveGeminiPairViaSMP(
const QString &publicKeyHash,
801 void slotDeriveGeminiPairViaSMP(
void);
802 void slotDetachListenerNeighbors(
void);
803 void slotDisableSynchronousUrlImport(
bool state);
804 void slotDisconnectAllNeighbors(
void);
805 void slotDisconnectListenerNeighbors(
void);
806 void slotDisconnectNeighbor(
void);
807 void slotDiscover(
void);
808 void slotDiscoverExternalAddress(
void);
809 void slotDisplayPopups(
bool state);
810 void slotDropUrlTables(
void);
811 void slotDuplicateTransmittedMagnet(
void);
812 void slotEmailFsGb(
int index);
813 void slotEmailLettersPerPageChanged(
int value);
814 void slotEmailPageChanged(
int value);
815 void slotEmailSecretsActionSelected(
void);
816 void slotEmptyTrash(
void);
817 void slotEnableChatEmoticons(
bool state);
818 void slotEnableRetrieveMail(
void);
819 void slotEnabledPostOffice(
bool state);
820 void slotEncryptionKeyTypeChanged(
int index);
821 void slotEstablishForwardSecrecy(
void);
822 void slotExportListeners(
void);
823 void slotExportPublicKeys(
void);
824 void slotExternalIp(
int index);
825 void slotFavoritesActivated(
int index);
826 void slotFindInSearch(
void);
827 void slotFindInSearchInitialize(
void);
828 void slotForceKernelRegistration(
bool state);
829 void slotForwardSecrecyEncryptionKeyChanged(
int index);
830 void slotGatherStatistics(
void);
831 void slotGatherUrlStatistics(
void);
832 void slotGeminiChanged(QTableWidgetItem *item);
833 void slotGeneralTimerTimeout(
void);
834 void slotGenerateEtpKeys(
int index);
835 void slotGenerateGeminiInChat(
void);
836 void slotGenerateInstitutionKeyPair(
void);
837 void slotGenerateNova(
void);
838 void slotGenerateOneYearListenerCertificate(
void);
839 void slotGoldBugDialogActionSelected(
void);
840 void slotHideOfflineParticipants(
bool state);
841 void slotImpersonate(
bool state);
842 void slotImportNeighbors(
void);
843 void slotImportPublicKeys(
void);
844 void slotImportUrls(
void);
845 void slotInitializeSMP(
const QString &hash);
846 void slotInitializeSMP(
void);
847 void slotInitiateSSLTLSSession(
void);
848 void slotJoinBuzzChannel(
void);
849 void slotKeepCopy(
bool state);
850 void slotKeepOnlyUserDefinedNeighbors(
bool state);
851 void slotKernelCipherTypeChanged(
int index);
852 void slotKernelHashTypeChanged(
int index);
853 void slotKernelKeySizeChanged(
const QString &text);
854 void slotKernelLogEvents(
bool state);
855 void slotKernelSocketError(QAbstractSocket::SocketError error);
856 void slotKernelSocketSslErrors(
const QList<QSslError> &errors);
857 void slotKernelSocketState(
void);
858 void slotKernelStatus(
void);
859 void slotKernelUrlBatchSizeChanged(
int value);
860 void slotKeysIndexChanged(
const QString &text);
861 void slotLaneWidthChanged(
int index);
862 void slotLaunchKernelAfterAuthentication(
bool state);
863 void slotLimitConnections(
int value);
864 void slotLimitSqliteSynchronization(
bool state);
865 void slotLinkClicked(
const QUrl &url);
866 void slotListenerChanged(QTableWidgetItem *item);
867 void slotListenerFullEcho(
void);
868 void slotListenerHalfEcho(
void);
869 void slotListenerIPComboChanged(
int index);
870 void slotListenerMaximumChanged(
int value);
871 void slotListenerSelected(
void);
872 void slotListenerSourceOfRandomnessChanged(
int value);
874 void slotMagnetRadioToggled(
bool state);
875 void slotMailContextMenu(
const QPoint &point);
876 void slotMailRetrievalIntervalChanged(
int value);
877 void slotMailSelected(QTableWidgetItem *item);
878 void slotMailSelected(
void);
879 void slotMailTabChanged(
int index);
880 void slotMaxMosaicSize(
int value);
881 void slotMaximumClientsChanged(
int index);
882 void slotMaximumEmailFileSizeChanged(
int value);
883 void slotMaximumUrlKeywordsChanged(
int value);
884 void slotMediaError(QMediaPlayer::Error error);
885 void slotMediaStatusChanged(QMediaPlayer::MediaStatus status);
886 void slotMessagesAnchorClicked(
const QUrl &link);
887 void slotModeChanged(QSslSocket::SslMode mode);
888 void slotMonitorEvents(
bool state);
889 void slotNeighborChanged(QTableWidgetItem *item);
890 void slotNeighborFullEcho(
void);
891 void slotNeighborHalfEcho(
void);
892 void slotNeighborMaximumChanged(
int value);
893 void slotNeighborSilenceTimeChanged(
int value);
894 void slotNeighborWaitForBytesWrittenChanged(
int value);
895 void slotNewEmailWindow(
void);
896 void slotNewGlobalName(
void);
897 void slotNewKeys(
bool state);
898 void slotNotificationsEnabled(
bool state);
899 void slotOntopChatDialogs(
bool state);
900 void slotOpenChatUrlChecked(
bool state);
901 void slotPQUrlDatabaseFaulty(
void);
902 void slotPageClicked(
const QString &link);
903 void slotParticipantDoubleClicked(QTableWidgetItem *item);
904 void slotPassphraseAuthenticateRadioToggled(
bool state);
905 void slotPassphraseChanged(
const QString &text);
906 void slotPassphraseRadioToggled(
bool state);
907 void slotPlaySounds(
bool state);
908 void slotPopPoptastic(
void);
909 void slotPoptasticAccountChanged(
const QString &text);
910 void slotPoptasticSettingsReset(
bool state);
911 void slotPoptasticSettingsReset(
void);
912 void slotPopulateBuzzFavorites(
void);
913 void slotPopulateEtpMagnets(
void);
914 void slotPopulateListeners(
void);
915 void slotPopulateNeighbors(QSqlDatabase *db,
917 const QString &connectionName,
919 void slotPopulateNeighbors(
void);
920 void slotPopulateParticipants(QSqlDatabase *db,
922 const QString &connectionName);
923 void slotPopulateParticipants(
void);
924 void slotPopulateStars(
void);
925 void slotPostgreSQLConnect(
void);
926 void slotPostgreSQLDisconnect(
int index);
927 void slotPostgreSQLKernelUrlDistributionTimeout(
int value);
928 void slotPostgreSQLWebServerCredentials(
void);
929 void slotPrepareAndShowInstallationWizard(
void);
930 void slotPrepareContextMenuMirrors(
void);
931 void slotPrepareSMP(
const QString &hash);
932 void slotPrepareSMP(
void);
933 void slotPrepareUrlDatabases(
void);
934 void slotPreviewStyleSheet(
void);
935 void slotProtocolRadioToggled(
bool state);
936 void slotProxyChecked(
bool state);
937 void slotProxyTypeChanged(
int index);
938 void slotPublicizeAllListenersPlaintext(
void);
939 void slotPublicizeListenerPlaintext(
void);
940 void slotPublishPeriodicallyToggled(
bool state);
941 void slotPublishedKeySizeChanged(
const QString &text);
942 void slotPurgeEphemeralKeyPair(
void);
943 void slotPurgeEphemeralKeys(
void);
945 void slotReceivedKernelMessage(
void);
946 void slotReceiversChanged(QTableWidgetItem *item);
947 void slotReceiversClicked(
bool state);
948 void slotRefreshMail(
void);
949 void slotRefreshPostOffice(
void);
950 void slotRefreshUrlDistillers(
void);
951 void slotRegenerateKey(
void);
952 void slotReloadEmailNames(
void);
953 void slotRemoveAttachment(
const QUrl &url);
954 void slotRemoveEmailParticipants(
void);
955 void slotRemoveOtmOnExit(
bool state);
956 void slotRemoveParticipants(
void);
957 void slotRemoveUrlParticipants(
void);
958 void slotRenameParticipant(
void);
959 void slotReplayMessages(
void);
960 void slotReply(
void);
961 void slotResendMail(
void);
962 void slotResetAETokenInformation(
void);
963 void slotResetAccountInformation(
void);
964 void slotResetAll(
void);
965 void slotResetAllStyleSheets(
void);
966 void slotResetCertificate(
void);
967 void slotResetForwardSecrecyInformation(
void);
968 void slotResetPrivateApplicationInformation(
void);
969 void slotResetStyleSheet(
void);
970 void slotRespondToForwardSecrecy(
void);
971 void slotRetrieveMail(
void);
972 void slotRewindFile(
void);
973 void slotSOSSMaximumClientsChanged(
int value);
974 void slotSaveAlternatingColors(
bool state);
975 void slotSaveAttachment(
void);
976 void slotSaveBuzzAutoJoin(
bool state);
977 void slotSaveBuzzName(
void);
978 void slotSaveCommonUrlCredentials(
void);
979 void slotSaveCongestionAlgorithm(
const QString &text);
980 void slotSaveCustomStatus(
void);
981 void slotSaveDestination(
void);
982 void slotSaveEmailName(
void);
983 void slotSaveExternalIPUrl(
void);
984 void slotSaveGeoIPPath(
void);
985 void slotSaveKernelPath(
void);
986 void slotSaveLineLimits(
int value);
987 void slotSaveMOTD(
void);
988 void slotSaveNodeName(
void);
989 void slotSaveOpenLinks(
bool state);
990 void slotSavePoptasticAccount(
void);
991 void slotSaveRefreshEmail(
bool state);
992 void slotSaveSecondaryStorage(
bool state);
993 void slotSaveSharePrivateKeys(
bool state);
994 void slotSaveSslControlString(
void);
995 void slotSaveStarBeamAutoVerify(
bool state);
996 void slotSaveUrlCredentials(
void);
997 void slotSaveUrlDistribution(
int index);
998 void slotSaveUrlName(
void);
999 void slotScramble(
bool state);
1000 void slotSearchResultsPerPage(
int value);
1001 void slotSecureMemoryPoolChanged(
int value);
1002 void slotSelectCAPath(
void);
1003 void slotSelectDestination(
void);
1004 void slotSelectGeoIPPath(
void);
1005 void slotSelectKernelPath(
void);
1006 void slotSelectTransmitFile(
void);
1007 void slotSelectUrlIniPath(
void);
1008 void slotSendMail(
void);
1009 void slotSendMessage(
void);
1010 void slotSeparateBuzzPage(
void);
1011 void slotSetAETokenInformation(
void);
1012 void slotSetCongestionMaxPageCount(
int value);
1013 void slotSetIconSize(
int index);
1014 void slotSetIcons(
int index);
1015 void slotSetListenerSSLControlString(
void);
1016 void slotSetNeighborPriority(
void);
1017 void slotSetNeighborSSLControlString(
void);
1018 void slotSetPassphrase(
void);
1019 void slotSetPrivateApplicationInformation(
void);
1020 void slotSetSBPulseSize(
void);
1021 void slotSetSBReadInterval(
void);
1022 void slotSetSocketOptions(
void);
1023 void slotSetStyleSheet(
void);
1024 void slotSetUrlIniPath(
void);
1025 void slotSetWidgetStyleSheet(
const QPoint &point);
1026 void slotShareBuzzMagnet(
void);
1027 void slotShareChatPublicKey(
void);
1028 void slotShareChatPublicKeyWithParticipant(
void);
1029 void slotShareEmailPublicKey(
void);
1030 void slotShareEmailPublicKeyWithParticipant(
void);
1031 void slotShareKeysWithKernel(
const QString &link);
1032 void slotShareOpenLibraryPublicKey(
void);
1033 void slotSharePoptasticPublicKey(
void);
1034 void slotShareStarBeam(
void);
1035 void slotShareURLPublicKey(
void);
1036 void slotShareUrlPublicKeyWithParticipant(
void);
1037 void slotShowAddParticipant(
void);
1038 void slotShowBuzzDetails(
bool state);
1039 void slotShowBuzzTabContextMenu(
const QPoint &point);
1040 void slotShowContextMenu(
const QPoint &point);
1041 void slotShowDocumentation(
void);
1042 void slotShowEncryptFile(
void);
1043 void slotShowErrorMessage(
void);
1044 void slotShowEtpMagnetsMenu(
const QPoint &point);
1045 void slotShowMainTabContextMenu(
const QPoint &point);
1046 void slotShowMinimalDisplay(
bool state);
1047 void slotShowNeighborStatistics(
void);
1048 void slotShowNotificationsWindow(
void);
1049 void slotShowOptions(
void);
1050 void slotShowPage(
bool state);
1051 void slotShowReleaseNotes(
void);
1052 void slotShowRss(
void);
1053 void slotShowSMPWindow(
void);
1054 void slotShowStatistics(
void);
1055 void slotShowStatisticsWindow(
void);
1056 void slotShowUrlSettings(
bool state);
1057 void slotSignatureCheckBoxToggled(
bool state);
1058 void slotSignatureKeyTypeChanged(
int index);
1059 void slotStarBeamFragmented(
bool state);
1060 void slotStarOTMCheckChange(
bool state);
1061 void slotStatisticsGathered(
void);
1062 void slotStatusButtonClicked(
void);
1063 void slotStatusChanged(
int index);
1064 void slotStyleSheetChanged(
int index);
1065 void slotSuperEcho(
int index);
1066 void slotTabChanged(
int index);
1067 void slotTerminateKernelOnUIExit(
bool state);
1068 void slotTestPoptasticPop3Settings(
void);
1069 void slotTestPoptasticSmtpSettings(
void);
1070 void slotTestSslControlString(
void);
1071 void slotTimeSliderDefaults(
void);
1072 void slotTimeSliderValueChanged(
int value);
1073 void slotTransmit(
void);
1074 void slotTransmittedPaused(
bool state);
1075 void slotTransmittedSelected(
void);
1076 void slotTransportChanged(
int index);
1077 void slotUnblockNeighbor(
void);
1078 void slotUnifyBuzz(
void);
1079 void slotUpdateChatWindows(
void);
1080 void slotUpdateSpinBoxChanged(
double value);
1081 void slotUrlLinkClicked(
const QUrl &u);
1082 void slotUrlPolarizerTypeChange(
int index);
1083 void slotVacuumDatabases(
void);
1084 void slotValidatePassphrase(
void);
1085 void slotVerify(
void);
1086 void slotVerifySMPSecret(
const QString &hash,
1087 const QString &keyType,
1088 const QString &oid);
1089 void slotVerifySMPSecret(
void);
1090 void slotViewEchoKeyShare(
void);
1091 void slotViewLog(
void);
1092 void slotViewRosetta(
void);
1093 void slotWebServerAllowServingLocalContent(
bool state);
1094 void slotWebServerInformationTimeout(
void);
1095 void slotWebServerPortChanged(
int value);
1096 void slotWebServerValueChangedTimeout(
void);
1097 void slotWizardButtonClicked(
void);
1098 void slotWizardCheckClicked(
void);
1101 void buzzNameChanged(
const QByteArray &name);
1102 void dataReceived(
const qint64 size);
1103 void dataSent(
const qint64 size);
1104 void iconsChanged(
void);
1105 void neighborsQueryReady(QSqlDatabase *db,
1107 const QString &connectionName,
1109 void newEmailName(
const QString &text);
1110 void newGlobalName(
const QString &text);
1111 void participantAdded(
const QString &type);
1112 void participantDeleted(
const QString &oid,
const QString &type);
1113 void participantNameChanged(
const QByteArray &publicKeyHash,
1114 const QString &name);
1115 void participantsQueryReady(QSqlDatabase *db,
1117 const QString &connectionName);
1118 void pqUrlDatabaseFaulty(
void);
1119 void smpMessageReceivedFromKernel(
const QByteArrayList &list);
1120 void statusChanged(
const QIcon &icon,
1121 const QString &name,
1123 const QString &toolTip);
1124 void updateEmailWindows(
void);
1138 bool operator < (
const QTableWidgetItem &other)
const
1140 static QRegExp s_regexp(
"[!+.:=@A-Za-z]");
1142 if(Qt::ItemIsUserCheckable & flags())
1143 return checkState() < other.checkState();
1144 else if(other.text().contains(s_regexp) || text().contains(s_regexp))
1145 return other.text() > text();
1147 return other.text().remove(
",").toLongLong() >
1148 text().remove(
",").toLongLong();
1152 #if QT_VERSION >= 0x050600 && defined(SPOTON_WEBENGINE_ENABLED)
1153 class spoton_webengine_url_request_interceptor:
1154 public QWebEngineUrlRequestInterceptor
1159 spoton_webengine_url_request_interceptor(QObject *parent):
1160 QWebEngineUrlRequestInterceptor(parent)
1164 ~spoton_webengine_url_request_interceptor()
1168 void interceptRequest(QWebEngineUrlRequestInfo &info)